package com.example.testing;

import android.os.Bundle;
import android.app.Activity;
import android.view.View.OnClickListener;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

public class MainMenu extends Activity implements OnClickListener{
	UserManagement userManagement;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		//userManagement = new UserManagement(this);
		//userManagement.checkLogin();
		
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
      	this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		setContentView(R.layout.main_menu);
		
		((Button)findViewById(R.id.uitloggen)).setOnClickListener(this);
	}
	public void onClick(View view) {	
		if(view.getId() == R.id.uitloggen) {
			userManagement.logoutUser();
		}
	}
}
